// src/api/book.ts
import request from "../utils/request";
import type { ApiResponse, BookPageQuery, PageResult, BookVO } from "../type/api";

export const bookApi = {
  queryBookPage: (query: BookPageQuery): Promise<ApiResponse<PageResult<BookVO>>> => {
    return request.get("/books/page", { params: query }).then(res => res.data);
  }
}
